package com.mycode.controller;

import com.mycode.domain.Payment;
import com.mycode.domain.ResponseResult;
import com.mycode.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Zengsh123 on 2020/3/11.
 */
@RestController
public class FeignController {
    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping("/consumer/payment/get/{id}")
    public ResponseResult<Payment> get(@PathVariable("id") Long id){
        return paymentFeignService.get(id);
    }
}
